package com.hourses.controller;

import com.hourses.pojo.Result;
import com.hourses.service.impl.BrandServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.print.attribute.ResolutionSyntax;

/**
 * @Description:
 * @Author:LiTao
 * @Date:2025/5/1 18:23
 */
@RestController
@RequestMapping("/product")
public class BrandController {

    //查询所有品牌  http://localhost:3000/api/product/brand-list
    @Autowired
    private BrandServiceImpl brandService;
    @GetMapping("/brand-list")
    public Result selectBrandList(){
        Result result = brandService.selectBrandList();
        return result;
    }
}
